package com.hqyj.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 
 * </p>
 *
 * @author rock
 * @since 2022-09-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("order1")
public class Order extends MyPage implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "oid", type = IdType.AUTO)
    private Integer oid;

    private Integer uid;

    /**
     * 菜名
     */
    private String dishName;

    /**
     * 套餐名
     */
    private String mealsName;

    /**
     * 总价
     */
    private String total;

    /**
     * 下单时间
     */
    private String createTime;

    /**
     * 收餐地址
     */
    private String address;
    /**
     * 订单状态
     */
    private int orderState;

    /**
     * 菜品
     */
    @TableField(exist = false)
     private List<Menu> menusList;

    /**
     * 套餐
     */
    @TableField(exist = false)
    private List<SetMeal> setMealList;

    @TableField(exist = false)
    private List<Order> orderList;

    /**
     * 菜品价格
     */
    @TableField(exist = false)
    private String mt;

    /**
     * 套餐价格
     */
    @TableField(exist = false)
    private String st;

    @TableField(exist = false)
    private String account;

}
